abstract class IConversationContext{
  add(ConversationModel model);
  String getPromptContext(String prompt);
}

class ConversationContext implements IConversationContext{
  List<ConversationModel> conversationList = [];
  int length = 0;
  @override
  add(ConversationModel model) {
    // TODO: implement add
    conversationList.add(model);
    length+=model.question.length;
    length+=model.answer.length;
  }

  @override
  String getPromptContext(String prompt) {
    // TODO: implement getPromptContext
    return '';
  }
}


class ConversationModel{
  final String question;
  final String answer;
  ConversationModel(this.question, this.answer);
}